<?php $formulaire->display('_formulaireList.tpl') ?>
<a class="icon_new" title="Créer un cours" href="<?php echo shRequest::link('saisiedescours', 'index', 'create', array($date, $promotions))?>">Créer un cours</a>
<?php 
    $planning->display();

    if(sizeof($planning->getPromotions()) > 1) :
	$i = 0; ?>
	<br/>
	<?php foreach($planning->getPromotions() AS $promotion):?>
	    <div style="float:left; background-color:#<?php echo PlanningSeance::$COULEURS[$i]?>; height: 30px; width: 30px;
		 margin-right:5px;border:1px solid #<?php echo modifyColor(PlanningSeance::$COULEURS[$i], -60)?>;">
	    </div>
	    <div style="padding-top:7px;">
	    <?php
		echo $formulaire->getField('Promotion(s)')->getOption($promotion);
		$i += 1;

	    ?>
	    </div>
	    <hr />
	<?php
	endforeach;
    endif; ?>


